package org.jboss.www.bpel.examples.wsdl;

public class SimpleInvoke_PortTypeProxy implements org.jboss.www.bpel.examples.wsdl.SimpleInvoke_PortType {
  private String _endpoint = null;
  private org.jboss.www.bpel.examples.wsdl.SimpleInvoke_PortType simpleInvoke_PortType = null;
  
  public SimpleInvoke_PortTypeProxy() {
    _initSimpleInvoke_PortTypeProxy();
  }
  
  public SimpleInvoke_PortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initSimpleInvoke_PortTypeProxy();
  }
  
  private void _initSimpleInvoke_PortTypeProxy() {
    try {
      simpleInvoke_PortType = (new org.jboss.www.bpel.examples.wsdl.SimpleInvoke_ServiceLocator()).getSimpleInvoke_Port();
      if (simpleInvoke_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)simpleInvoke_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)simpleInvoke_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (simpleInvoke_PortType != null)
      ((javax.xml.rpc.Stub)simpleInvoke_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.jboss.www.bpel.examples.wsdl.SimpleInvoke_PortType getSimpleInvoke_PortType() {
    if (simpleInvoke_PortType == null)
      _initSimpleInvoke_PortTypeProxy();
    return simpleInvoke_PortType;
  }
  
  public void sayHelloTo(javax.xml.rpc.holders.StringHolder toWhom) throws java.rmi.RemoteException{
    if (simpleInvoke_PortType == null)
      _initSimpleInvoke_PortTypeProxy();
    simpleInvoke_PortType.sayHelloTo(toWhom);
  }
  
  
}